package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class EmbeddedExceptionDeclaration {

    private int beginIndex;
    private int endIndex;
    private SqlCondition condition;
    private ConditionAction conditionAction;

    public EmbeddedExceptionDeclaration(int beginIndex,
                                        SqlCondition condition,
                                        ConditionAction conditionAction) {
        this.beginIndex = beginIndex;
        this.endIndex = conditionAction.getEndIndex();
        this.condition = condition;
        this.conditionAction = conditionAction;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SqlCondition getCondition() {
        return condition;
    }

    public ConditionAction getConditionAction() {
        return conditionAction;
    }

}
